//调用接口配置文件
import { request } from 'config/request'
import config from 'config/config'
// 定义接口

//新增
export async function addFun(params) {
    return request({
        url: `${config.aheadPlan}admin/landAuction/landAuction/add`,
        method: 'POST',
        data: params,
    });
  };

  //编辑
export async function getFirst(params) {
    return request({
        url: `${config.aheadPlan}admin/landAuction/landAuction/edit?type=${params.type}`,
        method: 'POST',
    });
  };

//查询
export async function queryInfo(params) {
    return request({
        url: `${config.aheadPlan}admin/landAuction/landAuction/queryById`,
        method: 'GET',
        data: params,
    });
  };

//获取区域
export async function findProduct(params) {
    return request({
        url: `${config.aheadPlan}admin/product/product/findProduct`,
        method: 'GET',
        data: params,
    });
  };
export async function queryAllAddress(params) {
    return request({
        url: `admin/address/queryAllAddress`,
        method: 'GET',
        data: params,
    });
};

  //新增竞品品牌关联
  export async function addlittle(params) {
    return request({
        url: `${config.aheadPlan}admin/attributeGroup/attributeGroup/addlittle`,
        method: 'POST',
        data: params,
    });
  };